<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "order_info".
 *
 * @property string $id
 * @property integer $user_id
 * @property string $park_current_id
 * @property string $start_time
 * @property string $end_time
 * @property integer $space_num
 * @property string $spaces
 * @property string $fee_type
 * @property string $fee_parms
 * @property string $fee_origin
 * @property string $fee_discount
 * @property string $fee_money
 * @property integer $status
 * @property string $create_date
 * @property string $update_date
 * @property string $option
 */
class OrderInfo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order_info';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'park_current_id'], 'required'],
            [['user_id', 'space_num', 'status'], 'integer'],
            [['start_time', 'end_time', 'create_date', 'update_date'], 'safe'],
            [['spaces', 'fee_type', 'fee_parms', 'fee_origin', 'fee_discount', 'fee_money', 'option'], 'string'],
            [['id', 'park_current_id'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '唯一标识',
            'user_id' => '用户标识',
            'park_current_id' => 'park_current标识',
            'start_time' => '开始时间',
            'end_time' => '结束时间',
            'space_num' => '停车位数量',
            'spaces' => '停车位信息',
            'fee_type' => '停车费计费方式',
            'fee_parms' => '停车费计费方式',
            'fee_origin' => '停车费原始费用',
            'fee_discount' => '停车费优惠费用',
            'fee_money' => '停车费最终费用',
            'status' => '状态',
            'create_date' => '创建日期',
            'update_date' => '更新日期',
            'option' => '备用字段',
        ];
    }
}
